import { createRouter, createWebHashHistory } from "vue-router";
const routes = [
  {
    path: "/",
    redirect: "/home",
  },
  {
    name: "home",
    path: "/home",
    component: () => import("@/views/home/home.vue"),
  },
  {
    name: "sign",
    path: "/sign",
    component: () => import("@/views/home/sign.vue"),
  },
  {
    name: "helpDetail",
    path: "/helpDetail",
    component: () => import("@/views/home/helpDetail.vue"),
  },
  {
    name: "order",
    path: "/order",
    component: () => import("@/views/order/orderList.vue"),
  },
  {
    name: "orderDetail",
    path: "/orderDetail",
    component: () => import("@/views/order/orderDetail.vue"),
  },
  {
    name: "bookDetail",
    path: "/bookDetail",
    component: () => import("@/views/order/bookDetail.vue"),
  },

  {
    name: "user",
    path: "/user",
    component: () => import("@/views/user/user.vue"),
  },
];
const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;
